<?
//引入所有子系统信息
include_once("../../../common/script/extender_import.php");


//**获取当前板块资料，必然载入，后续很多读取板块数据库的表格，都写成动态的了。
$_plate=$plate['service'];

//**获取板块的设置，必然载入
include_once("../model/setting.php");


//根据筛选框传递过来的内容，组装查找语句
include_once("script/set_condition.php");


//根据页面信息，组装查找语句
include_once("script/set_page.php");


//根据页面数量信息，筛选信息，创造url，供页码使用
include_once("script/set_url.php");
include_once("script/set_order.php");



//获取数据。注意带上翻页，搜索，排序等数据
$_list=select_lines_all_items($table_prefix.$_plate['table']['data'],$sort,$_condition,"$_data_start,$_quantity_per_page");


//获取单条数据，这个应该可以卸载model中
//$_data=select_one_line_all_items($table_prefix.$_plate['table']['data'],"nid > 0");





//todo 这部分有函数可以实现到。
//获取本页用到的单位的名字
//$unit_nid_list     = transform_2darray_in_1darray_with_new_key($data['data_list'], "nid", "unitnid");
//$unit_nid_list_str = implode("','", $unit_nid_list);
//$unit_list         = select_lines_all_items($table_Prefix . "unit", "", "nid in ('" . $unit_nid_list_str . "')", "");
//$unit_name_list    = transform_2darray_in_1darray_with_new_key($unit_list, "nid", "name");

?>

